package labox.innovation.gameserver.network.loginserverpackets;

/**
 * @author -Wooden-
 * 
 */
public class PlayerAuthResponse extends LoginServerBasePacket {

	private String _account;

	private boolean _authed;

	private String _channelId;

	/**
	 * @param decrypt
	 */
	public PlayerAuthResponse(byte[] decrypt) {
		super(decrypt);
		_account = readString();
		_authed = (readUnByte() == 0 ? false : true);
		_channelId = readString();
	}

	/**
	 * @return Returns the account.
	 */
	public String getAccount() {
		return _account;
	}

	/**
	 * @return Returns the authed state.
	 */
	public boolean isAuthed() {
		return _authed;
	}

	public String getChannelId() {
		return _channelId;
	}

}